﻿using SqlSugar;

namespace Bigway.Common.Interfaces;

public class SqliteAndCrmebSqlSugarClient: SqlSugarClient, ISqliteAndCrmebSqlSugarClient
{
    public SqliteAndCrmebSqlSugarClient(ConnectionConfig config) : base(config)
    {
    }

    public SqliteAndCrmebSqlSugarClient(List<ConnectionConfig> configs) : base(configs)
    {
    }

    public SqliteAndCrmebSqlSugarClient(ConnectionConfig config, Action<SqlSugarClient> configAction) : base(config, configAction)
    {
    }

    public SqliteAndCrmebSqlSugarClient(List<ConnectionConfig> configs, Action<SqlSugarClient> configAction) : base(configs, configAction)
    {
    }

    public ISqlSugarClient SqliteSqlSugarClient => GetConnection(IocKeys.SqliteDbKey);
    public ISqlSugarClient CrmebSqlSugarClient => GetConnection(IocKeys.CrmebDbKey);
}